
        body {
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin: 0;
            padding: 20px;
            min-height: 100vh;
        }

        #canvasWrap {
            width: 600px;
            height: 700px;
            margin: 20px auto;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            padding: 20px;
            position: relative;
        }

        #currActive {
            font-size: 28px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 15px;
            color: #333;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        #gameStatus {
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            margin-bottom: 20px;
            padding: 10px;
            border-radius: 8px;
            min-height: 25px;
            transition: all 0.3s ease;
        }

        .status-playing {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }

        .status-check {
            background: linear-gradient(135deg, #ff9800, #f57c00);
            color: white;
            animation: checkPulse 1s infinite;
        }

        .status-checkmate {
            background: linear-gradient(135deg, #f44336, #d32f2f);
            color: white;
            animation: checkmateFlash 0.5s infinite;
        }

        .status-stalemate {
            background: linear-gradient(135deg, #9e9e9e, #757575);
            color: white;
        }

        @keyframes checkPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes checkmateFlash {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        #canvas {
            display: block;
            margin: 0 auto;
            background: #EAC591;
            border: 3px solid #8B4513;
            cursor: pointer;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        }

        #controls {
            text-align: center;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        button {
            padding: 12px 24px;
            margin: 5px;
            font-size: 16px;
            font-weight: bold;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        #aiMoveBtn {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }

        #aiMoveBtn:hover:not(:disabled) {
            background: linear-gradient(135deg, #45a049, #388e3c);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        #aiMoveBtn:disabled {
            background: #cccccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        #resetBtn {
            background: linear-gradient(135deg, #f44336, #d32f2f);
            color: white;
        }

        #resetBtn:hover {
            background: linear-gradient(135deg, #d32f2f, #c62828);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        #newGameBtn {
            background: linear-gradient(135deg, #2196F3, #1976D2);
            color: white;
        }

        #newGameBtn:hover {
            background: linear-gradient(135deg, #1976D2, #1565C0);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        #status {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
            color: #666;
            min-height: 20px;
        }

        /* 游戏模式指示器 */
        #game-mode-indicator {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 12px 20px;
            color: white;
            border-radius: 25px;
            font-weight: bold;
            z-index: 1000;
            font-size: 14px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
        }

        /* 临时消息 */
        #temp-message {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            padding: 15px 25px;
            background: rgba(0,0,0,0.9);
            color: white;
            border-radius: 25px;
            z-index: 1000;
            font-size: 16px;
            font-weight: bold;
            pointer-events: none;
            display: none;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            backdrop-filter: blur(10px);
        }

        /* 模式切换按钮 */
        #mode-toggle-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            padding: 10px 16px;
            background: linear-gradient(135deg, #2196F3, #1976D2);
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            font-weight: bold;
            z-index: 1000;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        #mode-toggle-btn:hover {
            background: linear-gradient(135deg, #1976D2, #1565C0);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        /* 游戏结束覆盖层 */
        .game-over-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
            z-index: 100;
            border-radius: 15px;
            backdrop-filter: blur(5px);
        }

        .game-over-title {
            font-size: 36px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .game-over-message {
            font-size: 20px;
            margin-bottom: 30px;
            text-align: center;
            opacity: 0.9;
        }

        .game-over-actions {
            display: flex;
            gap: 20px;
        }

        .game-over-btn {
            padding: 15px 30px;
            font-size: 18px;
            border: 2px solid white;
            background: transparent;
            color: white;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: bold;
        }

        .game-over-btn:hover {
            background: white;
            color: #333;
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255,255,255,0.3);
        }

        /* 将军警告效果 */
        .check-warning {
            animation: checkGlow 2s infinite;
        }

        @keyframes checkGlow {
            0%, 100% { 
                filter: drop-shadow(0 0 0 transparent);
            }
            50% { 
                filter: drop-shadow(0 0 20px #ff4444);
            }
        }

        /* 被选中棋子的高亮效果 */
        .piece-selected {
            filter: drop-shadow(0 0 15px #00ff00);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            #canvasWrap {
                width: 90%;
                max-width: 500px;
                height: auto;
                padding: 15px;
            }
            
            #canvas {
                width: 100%;
                height: auto;
            }
            
            #controls {
                flex-direction: column;
                align-items: center;
            }
            
            button {
                width: 200px;
            }
        }
